.class public Lcom/example/location/BottomMenu;
.super Landroid/widget/LinearLayout;
.source "BottomMenu.java"


# instance fields
.field private context:Landroid/content/Context;

.field private layoutInflater:Landroid/view/LayoutInflater;

.field m:Lmyapp/MyApp;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 45
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/example/location/BottomMenu;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 47
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    const/4 v0, 0x0

    .line 49
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 34
    iput-object v0, p0, Lcom/example/location/BottomMenu;->m:Lmyapp/MyApp;

    .line 35
    iput-object v0, p0, Lcom/example/location/BottomMenu;->context:Landroid/content/Context;

    .line 36
    iput-object v0, p0, Lcom/example/location/BottomMenu;->layoutInflater:Landroid/view/LayoutInflater;

    .line 50
    iput-object p1, p0, Lcom/example/location/BottomMenu;->context:Landroid/content/Context;

    .line 51
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/example/location/BottomMenu;->layoutInflater:Landroid/view/LayoutInflater;

    .line 52
    iget-object v0, p0, Lcom/example/location/BottomMenu;->layoutInflater:Landroid/view/LayoutInflater;

    const v1, 0x7f0300a1

    const/4 v2, 0x1

    invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    .line 54
    return-void
.end method

.method static synthetic access$0(Lcom/example/location/BottomMenu;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lcom/example/location/BottomMenu;->context:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public SetOn(Ljava/lang/String;)V
    .locals 13
    .param p1, "noname"    # Ljava/lang/String;

    .prologue
    const v12, 0x7f0c0304

    const v11, 0x7f0c0303

    const v10, 0x7f0c0302

    const v9, 0x7f070026

    const v8, 0x7f070001

    .line 56
    iget-object v6, p0, Lcom/example/location/BottomMenu;->context:Landroid/content/Context;

    invoke-virtual {v6}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/location/BottomMenu;->m:Lmyapp/MyApp;

    .line 58
    const-string v6, "index"

    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 59
    const v6, 0x7f0c000a

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 60
    .local v4, "showimg":Landroid/widget/ImageView;
    const v6, 0x7f0c0013

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 63
    .local v5, "text":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/location/BottomMenu;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 64
    const v6, 0x7f020010

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 65
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v9}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 73
    :goto_0
    invoke-virtual {p0, v11}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 74
    .local v1, "layout2":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$1;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$1;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 90
    invoke-virtual {p0, v12}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 91
    .local v2, "layout3":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$2;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$2;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 106
    const v6, 0x7f0c0305

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 107
    .local v3, "layout4":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$3;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$3;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 339
    .end local v1    # "layout2":Landroid/widget/LinearLayout;
    .end local v2    # "layout3":Landroid/widget/LinearLayout;
    .end local v3    # "layout4":Landroid/widget/LinearLayout;
    .end local v4    # "showimg":Landroid/widget/ImageView;
    .end local v5    # "text":Landroid/widget/TextView;
    :cond_0
    :goto_1
    return-void

    .line 67
    .restart local v4    # "showimg":Landroid/widget/ImageView;
    .restart local v5    # "text":Landroid/widget/TextView;
    :cond_1
    const v6, 0x7f02002f

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 68
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 125
    .end local v4    # "showimg":Landroid/widget/ImageView;
    .end local v5    # "text":Landroid/widget/TextView;
    :cond_2
    const-string v6, "order"

    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 128
    const v6, 0x7f0c005a

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 130
    .restart local v4    # "showimg":Landroid/widget/ImageView;
    const v6, 0x7f0c00e0

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 133
    .restart local v5    # "text":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/location/BottomMenu;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 134
    const v6, 0x7f02000f

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 135
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v9}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 142
    :goto_2
    invoke-virtual {p0, v10}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 143
    .local v0, "layout1":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$4;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$4;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    invoke-virtual {p0, v12}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 161
    .restart local v2    # "layout3":Landroid/widget/LinearLayout;
    const/16 v6, 0x8

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 162
    new-instance v6, Lcom/example/location/BottomMenu$5;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$5;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 178
    const v6, 0x7f0c0305

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 179
    .restart local v3    # "layout4":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$6;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$6;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_1

    .line 137
    .end local v0    # "layout1":Landroid/widget/LinearLayout;
    .end local v2    # "layout3":Landroid/widget/LinearLayout;
    .end local v3    # "layout4":Landroid/widget/LinearLayout;
    :cond_3
    const v6, 0x7f02002d

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 138
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2

    .line 195
    .end local v4    # "showimg":Landroid/widget/ImageView;
    .end local v5    # "text":Landroid/widget/TextView;
    :cond_4
    const-string v6, "cart"

    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 197
    const v6, 0x7f0c0143

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 199
    .restart local v4    # "showimg":Landroid/widget/ImageView;
    const v6, 0x7f0c0151

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 203
    .restart local v5    # "text":Landroid/widget/TextView;
    const v6, 0x7f020028

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 204
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 207
    invoke-virtual {p0, v10}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 208
    .restart local v0    # "layout1":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$7;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$7;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 224
    invoke-virtual {p0, v11}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 225
    .restart local v1    # "layout2":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$8;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$8;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 242
    const v6, 0x7f0c0305

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 243
    .restart local v3    # "layout4":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$9;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$9;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_1

    .line 261
    .end local v0    # "layout1":Landroid/widget/LinearLayout;
    .end local v1    # "layout2":Landroid/widget/LinearLayout;
    .end local v3    # "layout4":Landroid/widget/LinearLayout;
    .end local v4    # "showimg":Landroid/widget/ImageView;
    .end local v5    # "text":Landroid/widget/TextView;
    :cond_5
    const-string v6, "person"

    invoke-virtual {p1, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 262
    const v6, 0x7f0c0306

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 264
    .restart local v4    # "showimg":Landroid/widget/ImageView;
    const v6, 0x7f0c0053

    invoke-virtual {p0, v6}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 268
    .restart local v5    # "text":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/location/BottomMenu;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_6

    .line 269
    const v6, 0x7f02000e

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 270
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v9}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    .line 277
    :goto_3
    invoke-virtual {p0, v10}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 278
    .restart local v0    # "layout1":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$10;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$10;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 295
    invoke-virtual {p0, v11}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    .line 296
    .restart local v1    # "layout2":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/location/BottomMenu$11;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$11;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 318
    invoke-virtual {p0, v12}, Lcom/example/location/BottomMenu;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 319
    .restart local v2    # "layout3":Landroid/widget/LinearLayout;
    const/16 v6, 0x8

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 320
    new-instance v6, Lcom/example/location/BottomMenu$12;

    invoke-direct {v6, p0}, Lcom/example/location/BottomMenu$12;-><init>(Lcom/example/location/BottomMenu;)V

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_1

    .line 272
    .end local v0    # "layout1":Landroid/widget/LinearLayout;
    .end local v1    # "layout2":Landroid/widget/LinearLayout;
    .end local v2    # "layout3":Landroid/widget/LinearLayout;
    :cond_6
    const v6, 0x7f020029

    invoke-virtual {v4, v6}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 273
    invoke-virtual {p0}, Lcom/example/location/BottomMenu;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    invoke-virtual {v6, v8}, Landroid/content/res/Resources;->getColor(I)I

    move-result v6

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_3
.end method
